package com.uchengwang.functions.http.config;

import com.uchengwang.functions.http.listener.IHttpManager;

/**
 * Created by U城网 on 2017/4/20.
 * U城相关的URL配置
 */

public interface UCityConfig {

    /**
     * U城主页的相关网络请求配置
     */
    public interface UcityMain{
        IHttpManager.RequestMethod method= IHttpManager.RequestMethod.GET;
        String URL = "/ucity/banner";//获取U城校园热门活动
    }

    /**
     * 获取U城类目[u学 u用 u行 u赛等]信息列表 || 某一条信息详情 || 发布4U相关内容
     * */

    public interface Ucity{
        IHttpManager.RequestMethod methos_get = IHttpManager.RequestMethod.GET;//获取信息 || 某一条信息详情
        IHttpManager.RequestMethod method_release = IHttpManager.RequestMethod.POST;//发布
        IHttpManager.RequestMethod method_put = IHttpManager.RequestMethod.PUT;
        String URL = "/uc";
    }

    /**
     * 获取U城banner信息
     */
    public interface UcityBanner{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/banner";
    }

    /**
     * 收藏U城类目[u学 u用 u行 u赛等]信息列表 || 取消收藏
     * */
    public interface UcityCollect{
        IHttpManager.RequestMethod method_collect = IHttpManager.RequestMethod.POST;//收藏活动
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;//取消活动
        String URL = "/uc/collect";
    }

    /**
     * 收藏U城类目[u学 u用 u行 u赛等]信息列表 || 取消收藏
     * */
    public interface UcityZan{
        IHttpManager.RequestMethod method_like = IHttpManager.RequestMethod.POST;//点赞
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;//取消点赞
        String URL = "/uc/like";
    }

    /**
     * 报名或取消一个U城[u学 u用 u行 u赛等]活动  || 查看一个U城活动的报名人数
     * */
    public interface UcityEnroll{
        IHttpManager.RequestMethod method_join = IHttpManager.RequestMethod.POST;//报名
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;//取消活动
        IHttpManager.RequestMethod method_check = IHttpManager.RequestMethod.GET; //查看一个U学活动的报名人数
        String URL = "/uc/enroll";
    }

    /**
     * 批准某人的申请
     * */
    public interface UcityApprove{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/uc/enroll/approve";
    }

    /**
     * 举报某一个U城内容
     * */
    public interface UcityReport{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URl = "/uc/report";
    }

    /**
     * 查看自己的收藏
     * */
    public interface GetMyCollect{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/my/collect";

    }

    /**
     * 查看自己的报名
     * */
    public interface GetMyEnroll{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/my/enroll";

    }

    /**
     * 查看自己的发布
     * */
    public interface GetMyRelease{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/my/publish";
    }

    /**
     * 创建一个U城活动群
     * */
    public interface CreateGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/uc/group";
    }

    /**
     * 版本控制
     * */
    public interface SysVersion{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/sys/check/version";
    }

    /**
     * 获取图片 uni
     * */
    public interface GetImage{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String  URL= "/sys/imgsource";
    }

    /**
     * 反馈
     * */
    public interface Feedback{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/sys/feedback";
    }

    /**
     * 获取我的未读 只作为社团纳新使用
     * */
    public interface MyUnReadMsg{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/my/unread";
    }

    /**
     * 获取未读U城评论消息
     * */
    public interface CmtUnRead{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/my/pub/unread";
    }

    /**
     * 获取U城热门
     * */
    public interface GetHot{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/uc/hot";
    }
}
